package ex2;

public class Employee extends StaffMember {
	protected String socialSecurityNumber;
	protected double payRate;
	
	public Employee() {
		super();
		this.socialSecurityNumber = null;
		this.payRate = 0;
	}
	public Employee(String name, String address, String phone, String socialSecurityNumber, double payRate) {
		super(name, address, phone);
		this.socialSecurityNumber = socialSecurityNumber;
		this.payRate = payRate;
	}
	@Override
	public String toString() {
		
		return "Name: "+ this.name+ "--Address: "+ this.address+ "--Phone: "+ this.phone+ "--Security Number: "+ this.socialSecurityNumber + "--Pay Rate: "+ this.payRate + "\n";
	}

	@Override
	public double pay() {
		
		return (50*this.payRate);
	}

}
